<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <ul></ul>
</body>
<script>
  const tempObject = {
    a: 'a',
    b: 'b',
    1: 1,
    2: 2,
    10: 10,
    '3': '3'
  }
  const ulEle = document.getElementsByTagName('ul')[0];

  ulEle.innerHTML = Object.keys(tempObject).map(item => `<li>${item} = ${tempObject[item]}</li>`).join('')


</script>

</html>